package com.bdzl.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

/**
 * Company entity. @author MyEclipse Persistence Tools
 * 公司表
 */
@Entity
@Table(name = "company")
@DynamicUpdate(true)
public class Company  {

	// Fields

		private Integer id;
		private String name;//公司名称
		private String introduction;//公司搜索名
		private Integer border;//1 境内  2 境外
		private Integer type;// 0删除	1 显示
		private Long time;//添加时间

		// Constructors

		/** default constructor */
		public Company() {
		}

		/** full constructor */
		public Company(String name, String introduction, Integer border,
				Integer type, Long time) {
			this.name = name;
			this.introduction = introduction;
			this.border = border;
			this.type = type;
			this.time = time;
		}

		// Property accessors
		@Id
		@GeneratedValue
		public Integer getId() {
			return this.id;
		}

		public void setId(Integer id) {
			this.id = id;
		}

		@Column(name = "name")
		public String getName() {
			return this.name;
		}

		public void setName(String name) {
			this.name = name;
		}

		@Column(name = "introduction")
		public String getIntroduction() {
			return this.introduction;
		}

		public void setIntroduction(String introduction) {
			this.introduction = introduction;
		}

		@Column(name = "border")
		public Integer getBorder() {
			return this.border;
		}

		public void setBorder(Integer border) {
			this.border = border;
		}

		@Column(name = "type")
		public Integer getType() {
			return this.type;
		}

		public void setType(Integer type) {
			this.type = type;
		}

		@Column(name = "time")
		public Long getTime() {
			return this.time;
		}

		public void setTime(Long time) {
			this.time = time;
		}


}
